package com.youlu.campus.activity.service;

import com.youlu.campus.activity.entity.ActivityLotteryPrize;
import com.youlu.campus.activity.entity.ActivityLotteryPrizeNameVo;
import com.youlu.campus.activity.entity.ActivityLotteryPrizeQueryVo;
import org.springframework.data.domain.Page;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 活动抽奖奖品服务接口
 */
public interface ActivityLotteryPrizeService {

    /**
     * 保存奖品
     */
    ActivityLotteryPrize save(ActivityLotteryPrize prize);

    /**
     * 删除奖品
     */
    boolean delete(String prizeId);


    /**
     * 分页查询
     *
     * @param queryVo
     * @return
     */
    Page<ActivityLotteryPrize> findByPage(ActivityLotteryPrizeQueryVo queryVo);

    /**
     * 通过id查询
     *
     * @param prizeId
     * @return
     */
    ActivityLotteryPrize findById(@NotNull(message = "奖品id不能为空") String prizeId);

    /**
     * 通过id 数组查询名称数组
     *
     * @param idArr
     * @return
     */
    List<ActivityLotteryPrizeNameVo> findNameByIds(String[] idArr);
}
